module.exports = {
  chainWebpack: config => {
    config.module
    .rule('videos')
    .test(/\.(mp4|webm|ogg)(\?.*)?$/)
    .use('file-loader')
    .loader('file-loader')
    .options({
      name: 'videos/[name].[hash:8].[ext]'
    })
  }
} 